package com.soft.javase.ch02.test04;

/**
 * @author wangzhisen
 * @Desc TODO
 * @date 2025/4/18
 */
class Manager extends Employee {
    private String department;

    public Manager(String name, String address, double basicSalary, String department) {
        super(name, address, basicSalary);
        this.department = department;
    }

    public String getDepartment() {
        return department;
    }

    public void setDepartment(String department) {
        this.department = department;
    }

    @Override
    public void show() {
        super.show();
        System.out.println("所管部门: " + department);
    }
}
